package com.lsu.app.service;

import com.lsu.app.bean.Talk;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【talk(话题)】的数据库操作Service
 * @Date 2023-10-18 20:27:11
 * @author hjj
 */

public interface TalkService extends IService<Talk> {
    void updateTalkHeat(Integer id,Integer amount);
    String getTitleById(Integer id);
    Integer getTypeIdByTypeName(String typeName);
    List<String> getAllTypeName();
    String getTypeNameByType(Integer type);
    Integer getHostIdByTalkId(Integer id);
    List<Talk> getCourseTalksByCourseId(Integer courseId);
    List<Integer> getCourseIdsByUserId(Integer userId);
    void insertUC(Integer userId,Integer courseId);
    void deleteUCT(Integer courseId);
    void stuInsert(Integer userId,Integer courseId);
}
